<template>
    <div>
        <van-nav-bar title="购物车" left-text="返回" left-arrow @click-left="() => { $router.push('/js') }" />
        <van-card num="2" price="2.00" desc="描述信息" title="商品标题"
            thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg" />

<van-submit-bar :price="3050" button-text="结算" @submit="onSubmit" />




    </div>
</template>

<script setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router=useRouter()
const onSubmit=()=>{
    router.push('/js')
   
}
</script>

<style lang="scss" scoped></style>